<div class="panel panel-default panel-intro">
		<div class="panel-body">
				<div id="myTabContent" class="tab-content">
						<div class="tab-pane fade active in" id="one">
								<div class="widget-body no-padding">
										<div class="bootstrap-table">
												<div class="commonsearch-table">
														<form class="form-horizontal form-commonsearch" action="" method="get">
														<fieldset>
														<div class="row">
														<div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
														<label for="address" class="control-label col-xs-4">地址</label>
														<div class="col-xs-8">
																<input type="text" class="form-control" name="search[address]" value="{$address??''}" placeholder="地址" id="s-address" data-index="Address" />
												</div>
										</div>
														<div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
														<label for="name" class="control-label col-xs-4">名称</label>
														<div class="col-xs-8">
																<input type="text" class="form-control" name="search[name]" value="{$name??''}" placeholder="名称" id="s-name" data-index="Name" />
												</div>
										</div>
														<div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
																<div class="col-sm-8 col-xs-offset-4 text-center">
														<input type="hidden" name="offset" value="{$offset}" />
														<input type="hidden" name="limit" value="{$limit}" />
														<button type="submit" class="btn btn-success">搜索</button>
														<button type="reset" class="btn btn-default">重置</button>
												</div>
										</div>
								</div>
						</fieldset>
				</form>
		</div>
		<div class="fixed-table-toolbar">
				<div class="bs-bars pull-left">
						<div id="toolbar" class="toolbar" style="position: relative;">
								<a href="javascript:window.location.reload();" class="btn btn-primary btn-refresh" title="刷新"><i class="fa fa-refresh"></i></a>
								<a class="btn btn-danger btn-choose-multi disabled"><i class="fa fa-check"></i> {:__('Choose')}</a>
						</div>
				</div>
				<div class="columns columns-right btn-group pull-right">
						<button class="btn btn-default" type="button" id="toggleview" name="toggleview" aria-label="toggle" title="切换"><i class="glyphicon glyphicon-list-alt icon-list-alt"></i></button>
						<div class="keep-open btn-group" title="列">
								<button type="button" aria-label="columns" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
								<i class="glyphicon glyphicon-th icon-th"></i><span class="caret"></span></button>
								<ul class="dropdown-menu" role="menu">
										{volist name="columnlist" id="v" key="kk"}
												{if $v.columnenname!='itemid'}
														<li role="menuitem" class="cheng_showlist"><label>
														<input type="checkbox" data-field="{$v.columnenname}" value="{$v.itemid}" {if $v.isshowwindow==1}checked="checked"{/if} />{$v.columnname}
														</label></li>
												{/if}
										{/volist}
								</ul>
						</div>
				</div>
				<div class="fixed-table-container">
						<div class="fixed-table-body">
								<table id="table" class="table table-striped table-bordered table-hover" data-operate-edit="1" data-operate-del="1" width="100%">
										<thead>
										<tr>
												<th class="bs-checkbox" data-field="0">
												<div class="th-inner">
												{if $multiple eq 1}
														<input id="chkSelectAll" name="chkSelectAll" type="checkbox" />
												{/if}
												</div><div class="fht-cell"></div>
												</th>
												{volist name="columnlist" id="v" key="kk"}
														{if condition="($v.isshowwindow==1) and ($v.columnenname!='itemid')"}
														<th data-field="{$v.columnenname}">
																<div class="th-inner">{$v.columnname}</div><div class="fht-cell"></div>
														</th>
														{/if}
												{/volist}
										</tr>
										</thead>
										<tbody data-listidx="0" id="datalist">
												{volist name="lists" id="vo" key="k"}
														<tr data-index="{$k}">
																<td class="bs-checkbox" columnname="itemid">
																{if $multiple eq 1}
																		<input data-index="{$k}" name="btSelectItem" type="checkbox" value="{$vo.itemid}" />
																{else}
																		<input data-index="{$k}" name="btSelectItem" type="radio" value="{$vo.itemid}" />
																{/if}
																</td>
																{volist name="columnlist" id="v" key="kk"}
																		{if condition="($v.isshowwindow==1) and ($v.columnenname!='itemid')"}
																				<td columnname="{$v.columnenname|ucfirst}">{$vo[$v.columnenname]}</td>
																		{/if}
																{/volist}
														</tr>
												{/volist}
										</tbody>
								</table>
						</div>
				</div>
				<div class="fixed-table-footer" style="display: none;">
						<table><tbody><tr></tr></tbody></table>
				</div>
				<div class="fixed-table-pagination" style="display: block;">
						<div class="pull-left pagination-detail">
								<span class="pagination-info">
										显示第 {$offset+1} 到第 {if $totalpage eq $page}{$total}{else}{$limit*$page}{/if} 条记录，总共 {$total} 条记录
								</span>
						</div>
						<div class="pull-right pagination">
								<ul class="pagination">
										{if $page eq 1 || $offset eq 0 }
												<li class="page-pre"><a href="#" class="btn-disabled disabled">上一页</a></li>
										{else}
												<li class="page-pre"><a href="{$surl}&offset={$offset-$limit}">上一页</a></li>
										{/if}
										{for start="1" end="($totalpage+1)"}
												<li class="page-number {if $i eq $page}active{/if}"><a href="{$surl}&offset={$limit*($i-1)}">{$i}</a></li>
										{/for}
										{if $page < $totalpage}
												<li class="page-next"><a href="{$surl}&offset={$offset+$limit}">下一页</a></li>
										{else}
												<li class="page-next"><a href="#">下一页</a></li>
										{/if}
								</ul>
						</div>
						</div>
				</div>
				</div>
				<div class="clearfix"></div>
		</div>
		</div>
		</div>
		</div>
		</div>
<script type="text/javascript">
var pagedata = {
		list: {$listsjson|raw},columns:{$columnlistjson|raw}
};
</script>
